﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.EquipAlarmRecordVMs
{
    public partial class EquipAlarmRecordBatchVM : BaseBatchVM<EquipmentAlarmRecord, EquipAlarmRecord_BatchEdit>
    {
        public EquipAlarmRecordBatchVM()
        {
            ListVM = new EquipAlarmRecordListVM();
            LinkedVM = new EquipAlarmRecord_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class EquipAlarmRecord_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._EquipAlarmRecord._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Equipment")]
        public Guid? EquipmentId { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._EquipCode")]
        public string EquipCode { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._EquipName")]
        public string EquipName { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._OpCode")]
        public string OpCode { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Address")]
        public string Address { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Bits")]
        public int? Bits { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Content")]
        public string Content { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Level")]
        public AlarmLevelEnum? Level { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Classify")]
        public AlarmTypeEnum? Classify { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Duration")]
        public decimal? Duration { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._Status")]
        public AlarmStatusEnum? Status { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._StartTime")]
        public DateTime? StartTime { get; set; }
        [Display(Name = "_Model._EquipAlarmRecord._EndTime")]
        public DateTime? EndTime { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}